package com.example.weatherdemotest.bean;

import com.google.gson.annotations.SerializedName;

/**
 * 用于显示data中的每个结点 每一天的天气情况
 * "data": [{
 * 	"date": "2023-03-20",
 * 	"wea": "多云",
 * 	"wea_img": "yun",
 * 	"tem_day": "16",
 * 	"tem_night": "7",
 * 	"win": "西南风",
 * 	"win_speed": "<3级"
 * },
 */
public class DayWeatherBean {

    @SerializedName("date")
    private String date;

    @SerializedName("wea")
    private String weather;

    @SerializedName("wea_img")
    private String weatherIcon;

    @SerializedName("tem_day")
    private String weatherTemDay;

    @SerializedName("tem_night")
    private String weatherTemNight;

    @SerializedName("win")
    private String wind;

    @SerializedName("win_speed")
    private String Windspeed;


    //生成相应的Get和Set方法
    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getWeather() {
        return weather;
    }

    public void setWeather(String weather) {
        this.weather = weather;
    }

    public String getWeatherIcon() {
        return weatherIcon;
    }

    public void setWeatherIcon(String weatherIcon) {
        this.weatherIcon = weatherIcon;
    }

    public String getWeatherTemDay() {
        return weatherTemDay;
    }

    public void setWeatherTemDay(String weatherTemDay) {
        this.weatherTemDay = weatherTemDay;
    }

    public String getWeatherTemNight() {
        return weatherTemNight;
    }

    public void setWeatherTemNight(String weatherTemNight) {
        this.weatherTemNight = weatherTemNight;
    }

    public String getWind() {
        return wind;
    }

    public void setWind(String wind) {
        this.wind = wind;
    }

    public String getWindspeed() {
        return Windspeed;
    }

    public void setWindspeed(String windspeed) {
        Windspeed = windspeed;
    }

    //生成toString()便于打印
    @Override
    public String toString() {
        return "DayWeatherBean{" +
                "date='" + date + '\'' +
                ", weather='" + weather + '\'' +
                ", weatherIcon='" + weatherIcon + '\'' +
                ", weatherTemDay='" + weatherTemDay + '\'' +
                ", weatherTemNight='" + weatherTemNight + '\'' +
                ", wind='" + wind + '\'' +
                ", Windspeed='" + Windspeed + '\'' +
                '}';
    }
}
